import { request } from '@/framework/utils/request-jdz';

// 请求编码
export const getspecimens = (data) => {
  return request(
    {
      url: '/specimens/instance/batch',
      method: 'post',
      data,
    },
    {
      isGetDataDirectly: false,
    },
  );
};

// 保存登记
export const postregister = (data) => {
  return request(
    {
      url: '/specimensRegister',
      method: 'post',
      data,
    },
    {
      isGetDataDirectly: false,
    },
  );
};
// 编辑登记
export const Patchregister = (data, id) => {
  return request(
    {
      url: `/specimensRegister/${id}`,
      method: 'put',
      data,
    },
    {
      isGetDataDirectly: false,
    },
  );
};
